<!doctype html>
<style>
:root { background-color: blue }
@media (prefers-color-scheme: dark) {
  :root { background-color: purple }
}
</style>
